package com.mocha.websocket.handler;


import com.mocha.common.core.MochaException;
import com.mocha.websocket.command.MochaTextCommand;
import com.mocha.websocket.metadata.MochaTextMessage;

/**
 * @author songkui
 * @since 2024/3/16 11:06
 */
public interface MochaSocketTextHandler<T extends MochaTextMessage> {
    void handle(MochaTextCommand<T> command)throws MochaException;
}
